package com.hnas.eCard.dao;

import java.util.List;

import com.hnas.core.dao.BaseDao;
import com.hnas.eCard.orm.AccECard;

public interface AccECardDAO extends BaseDao<AccECard> {

	/**
	 * 通过sql查询
	 * @param sql
	 * @return
	 */
	List<AccECard> findByECardSql(AccECard vo);
	
	/**
	 * 通过电子卡状态分页查询电子卡信息
	 * @param searchStatus
	 * @param pageNo
	 * @param pageSize
	 * @return List<AccECard>
	 */
	List<AccECard> findECardsByStatus(String accId,String searchStatus, Integer pageNo, Integer pageSize) throws Exception;

	AccECard saveOrUpdate(AccECard vo) throws Exception;
	
	/**
	 * 通过sql查询
	 * @param sql
	 * @return
	 */
	List<AccECard> searchECardSql(AccECard vo, boolean checkDelete);

	int unbindECard(String accId, String cardNo);

}
